package com.hylink.bean;


/**
 * @author Yali.Ru
 * @version V1.0
 * @Description: 枚举类，维护代码状态
 * @date 2017/12/4 14:35
 */
public enum ResultCode {

    SUCCESS(0, "请求成功"),
    WARN(-1, "网络异常，请稍后重试");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


}
